﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HCY.CTP.DBShangZheng;
using IFClientDLL.MyCalc.CalcData;

namespace IFClientDLL.MyCalc.CalcTrade
{
    public class CalcTrade_Empty : CalcBase, ICalc
    {
        public CalcTrade_Empty(ITryIF tryif)
            : base(tryif)
        {

        }
        protected virtual void CalcTrade(IFServerDLL.Model.TradeOnHand tradeOnhand, MyIF myif)
        {

        }
        public ICalcResult DoCalc(MyIF myif)
        {
            foreach (var x in _tryif.Client.TradeOnHand.Where(p => p.Instrument == myif.Instrument))
            {
                CalcTrade(x, myif);
            }
            return new CalcResultBase(false);
        }

        public override MyCalcType CalcType
        {
            get { return MyCalcType.Trade; }
        }

        public override string CalcName
        {
            get { return "Trade Empty"; }
        }



        public List<MyEnumCalcDataType> CalcDataTypes
        {
            get {return new List<MyEnumCalcDataType>(); }
        }


        public override string CalcDescripte
        {
            get { return "系统默认交易"; }
        }
    }
}
